<%@ Page language="vb" autoeventwireup="false" codebehind=""%>
<html>
<head>
<title>Chapter 6:ASP.NET List Controls</title>
<script language="VB" runat="server">
Sub UpdateButton_Click(sender As Object, e As EventArgs)
StatusLabel.Text = StatusLabel.Text & "Order status at " & FormatDateTime(Now(), 3) & " - " & StatusList.SelectedItem.Value & "<br>"
End Sub
</script>
</head>
<body>
<form runat="server">
<h3>Using DropDownList</h3>
Please update the order status:<br>
<asp:DropDownList id="StatusList" runat="server">
<asp:ListItem value="100">Pending</asp:ListItem>
<asp:ListItem value="200">In Transit</asp:ListItem>
<asp:ListItem value="300">Delivered</asp:ListItem>
<asp:ListItem value="400">Backorder</asp:ListItem>
<asp:ListItem value="500">Cancelled</asp:ListItem>
</asp:DropDownList>
<asp:button text="Update" OnClick="UpdateButton_Click" runat="server" ID="UpdateButton"/>
<p>
<asp:Label id="StatusLabel" runat="server"/>
</p>
</form>
</body>
</html>